#![allow(dead_code)]

struct DisplayLrn {}

impl DisplayLrn {}

#[cfg(test)]
mod tests {
    #[test]
    fn impl_display() {
        struct MyType {
            a: i32,
            b: i32,
        }

        impl std::fmt::Display for MyType {
            fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
                write!(f, "Custom MyType {{ a: {}, b: {} }}", self.a, self.b)
            }
        }

        let my_type = MyType { a: 1, b: 2 };
        println!("my_type = {}", my_type);
    }
}
